package com.dgut.common.dto;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author IT00ZYQ
 * @date 2021/4/13 15:21
 **/
@Data
public class BillDTO {

    @NotBlank(message = "账单标题不能为空")
    private String title;

    @NotNull(message = "账单类型不能为空")
    private Integer type;

    @NotNull(message = "金额不能为空")
    private BigDecimal money;

    @NotNull(message = "标签ID不能为空")
    private Integer tagId;

    @NotNull(message = "流水日期不能为空")
    private Date date;

}
